<div class="the-island clearfix">
  <h3><?php print t('the islands'); ?></h3>
  <?php
  for($i = 0; $i <= 20; $i += 5) {
    $col = array_slice($islands, $i, 5, true); ?>
    <ul class="island">
    <?php
    foreach($col as $nid=> $island){
      $attrs['rel'] = $nid;
      if ($i == 0) { $attrs['class'] = 'active'; }
      print '<li>' . l($island['title'], 'node/'.$nid, array('attributes' => $attrs)) . '</li>';
    }
    ?>
    </ul>
  <?php
  }
  ?>
</div>

<div class="overview">
  <?php
  $passed = false;
  foreach ($islands as $nid => $island) { ?>
    <div class="island-desciption <?php if (!$passed) {print 'hide'; } ?>" rel="<?php print $nid; ?>">
      <h2><?php print t('Overview of @s', array('@s' => $island['title'])); ?></h2>
      <p><?php print trim($island['body'],50); ?> <span><a href="<?php echo url('node/'.$nid);?>"><?php print t('read more...'); ?></a></span></p>
    </div>
    <?php
    $passed=true;
  } ?>
</div>